package com.le.dub.common;

/**
 * @description:业务异常类
 * @author: guole
 * @date: 2020/4/9
 */
public class BusinessRuntimeException  extends  RuntimeException {

    private  ResultCode resultCode;
    private  String code;
    private String msg;
    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public BusinessRuntimeException(ResultCode resultCode) {
        this.setResultCode(resultCode);
      }

    public BusinessRuntimeException(String code, String msg) {
        this.code=code;
        this.msg=msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
